package com.rexense.beacon;

import com.rexense.beacon.service.NettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class BeaconApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(BeaconApplication.class, args);
        NettyServer nettyServer = context.getBean(NettyServer.class);
        nettyServer.start();

    }

}
